{include file="common/header" title="菜单管理" css="admin-menu" /}
<div class="container-fluid  add-menu-head">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">菜单管理</h3>
        </div>
        <div class="panel-body">
            <div class="row">
                <label class="col-sm-2 control-label" style="text-align: right; margin-top:5px">菜单名：</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" name="name" id="search_name"/>
                </div>
                <div class="col-sm-2 col-sm-offset-4">
                    <button class="btn btn-primary" id="search_btn">查询</button>
                </div>
            </div>
            <table id="menu" style="word-wrap: break-word"></table>
            <div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
                <button id="btn_edit" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true" ></span>修改
                </button>
                <button id="btn_delete" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
                </button>
                <button id="add-menu" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                </button>
            </div>
        </div>
        <div class="panel-footer">Copyright © 1996-2019 lauwen.</div>
    </div>
</div>
<div id="menu-form-content" style="display: none">
    <div class="container-fluid add-menu-head">
        <form id="menuForm" method="post" action="">
            <div class="row add-menu-head">
                <div class="col-md-4 form-item-title">
                    <b>所属分类：</b>
                </div>
                <div class="col-md-8">
                    <p class="form-item-input-box">
                        <select name="parent"
                                id="parent"
                                class="form-inline form-item-input">
                        </select>
                    </p>
                    <!--<p class="form-comment">菜单名必须由字母和数字组成！</p>-->
                </div>
            </div>
            <div class="row add-menu-head">
                <div class="col-md-4 form-item-title">
                    <b>菜单名字：</b>
                </div>
                <div class="col-md-8">
                    <p class="form-item-input-box">
                        <input type="text" name="name" id="name" value="" class="form-inline form-item-input">
                    </p>
                </div>
            </div>
            <div class="row add-menu-head">
                <div class="col-md-4 form-item-title">
                    <b>图标：</b>
                </div>
                <div class="col-md-8">
                    <p class="form-item-input-box">
                        <input type="text" name="icon" id="icon" value="" class="form-inline form-item-input">
                    </p>
                </div>
            </div>
            <div class="row add-menu-head">
                <div class="col-md-4 form-item-title">
                    <b>控制器：</b>
                </div>
                <div class="col-md-8">
                    <p class="form-item-input-box">
                        <input type="text" name="controller" id="controller" value="" class="form-inline form-item-input">
                    </p>
                </div>
            </div>
            <div class="row add-menu-head">
                <div class="col-md-4 form-item-title">
                    <b>方法：</b>
                </div>
                <div class="col-md-8">
                    <p class="form-item-input-box">
                        <input type="text" name="method" id="method" value="" class="form-inline form-item-input">
                    </p>
                </div>
            </div>
            <input type="hidden" value="false" name="edit" id="edit"/>
            <input type="hidden" value="" name="submit_type" id="id"/>
            <div class="row add-menu-head" style="display: none">
                <div class="col-md-4 form-item-title">
                    <b>设置角色权限：</b>
                </div>
                <div class="col-md-8">
                    <div class="col-md-12 menu-role">
                        <table class="table table-bordered">
                            <tr>
                                <th class="table-select">选择</th>
                                <th>权限名称</th>
                            </tr>
                            <tr>
                                <td class="table-select">
                                    <input type="checkbox">
                                </td>
                                <td>权限名称</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div class="row add-menu-head">
                <div class="col-md-offset-4 col-md-8">
                    <p class="form-item-input-box">
                        <button type="button" id="menu-submit" class="btn btn-success add-btn">立&ensp;即&ensp;保&ensp;存</button>
                    </p>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="common/footer" js="admin-menu" /}